// development, production
const mode = process.env.NODE_ENV

const base = {
    aaa : 'bbb'
}

const development = merge(base, {
    sftpPathPrefix: 'http://weixin.luxesglobal.com/upload/',
    gwApiPrefix: 'http://192.168.1.114:8080/',
    weixinPrefix: 'http://weixin.luxesglobal.com'
})

const production = merge(base, {
    sftpPathPrefix: 'http://weixin.luxesglobal.com/upload/',
    gwApiPrefix: 'http://admin.luxesglobal.com/',
    weixinPrefix: 'http://weixin.luxesglobal.com'
})

const testServer = merge(base, {
    sftpPathPrefix: 'http://121.8.157.139:10181',
    gwApiPrefix: 'http://192.168.29.235:8211',
    weixinPrefix: 'http://weixin.luxesglobal.com'
})

function merge(base, ext) {
    var temp = {};
    for(var key in base) {
        temp[key] = base[key];
    }
    for(var key in ext) {
        temp[key] = ext[key];
    }
    return temp;
}

export default eval(mode)